home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
comm
/
ums
/
pint.lha
/
UMS
/
Rexx
/
DFA.pint
< prev
next >
Wrap
Text File
|
1997-03-04
|
2KB
|
71 lines
/*
$VER: DFA.pint 1.0 (27.8.95)
Author:
Matthias Scheler <tron@lyssa.owl.de>
Updated for PINT (22.2.97):
Magnus Heino (nd95mho@Student.HGS.SE)
Function:
Lets DFA handle PINT's address book
History:
0.1 initial version
0.2 added "ADD" handling
0.3 fixed bug in "QUERY" handling
1.0 released with IntuiNews 1.3
Requires:
UMSServer 11.28 or newer
ums.library 11.18 or newer
DFA 2.25 or newer, at least server running
Example for "ums.config":
( PINT.Book "!DFA.pint" )
*/
IF ~SHOW('P','DFA') THEN EXIT 10
PARSE ARG Command " " Name "," Addr "," Comment
OPTIONS RESULTS
SIGNAL ON ERROR
IF Command="QUERY" THEN
DO
ADDRESS 'DFA' 'FIRST STEM ADR.'
IF ADR.ADDRESS.24 = 0 THEN ADDRESS 'DFA' 'NEXTSEL STEM ADR.'
DO WHILE 1
IF ADR.ADDRESS.12~="" THEN
'ADD "'||ADR.ADDRESS.1 ADR.ADDRESS.2||'" "'||ADR.ADDRESS.12||'" "'||ADR.ADDRESS.15||'"'
IF ADR.ADDRESS.13~="" THEN
'ADD "'||ADR.ADDRESS.1 ADR.ADDRESS.2||'" "'||ADR.ADDRESS.13||'" "'||ADR.ADDRESS.15||'"'
IF ADR.ADDRESS.14~="" THEN
'ADD "'||ADR.ADDRESS.1 ADR.ADDRESS.2||'" "'||ADR.ADDRESS.14||'" "'||ADR.ADDRESS.15||'"'
ADDRESS 'DFA' 'NEXTSEL STEM ADR.'
END
END
IF Command="ADD" THEN
DO
P=LASTPOS(" ",Name)
IF P=0 THEN First=""
ELSE
DO
First=LEFT(Name,P-1)
Name=SUBSTR(Name,P+1)
END
ADDRESS 'DFA' 'POPUP'
ADDRESS 'DFA' 'NEW FIRST "'||First||'" NAME "'||Name||'" EMAIL1 "'||Addr||'" COMMENT "'||Comment||'"'
END
ERROR:
EXIT 0